home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / settingsdialog_base.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  10.3 KB  |  225 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_SettingsDialog_base(object):
  7.     
  8.     def setupUi(self, SettingsDialog_base):
  9.         SettingsDialog_base.setObjectName('SettingsDialog_base')
  10.         SettingsDialog_base.resize(QtCore.QSize(QtCore.QRect(0, 0, 500, 540).size()).expandedTo(SettingsDialog_base.minimumSizeHint()))
  11.         self.gridlayout = QtGui.QGridLayout(SettingsDialog_base)
  12.         self.gridlayout.setObjectName('gridlayout')
  13.         self.TabWidget = QtGui.QTabWidget(SettingsDialog_base)
  14.         self.TabWidget.setObjectName('TabWidget')
  15.         self.AutoRefresh = QtGui.QWidget()
  16.         self.AutoRefresh.setObjectName('AutoRefresh')
  17.         self.gridlayout1 = QtGui.QGridLayout(self.AutoRefresh)
  18.         self.gridlayout1.setObjectName('gridlayout1')
  19.         self.textLabel3_2_2 = QtGui.QLabel(self.AutoRefresh)
  20.         self.textLabel3_2_2.setWordWrap(False)
  21.         self.textLabel3_2_2.setObjectName('textLabel3_2_2')
  22.         self.gridlayout1.addWidget(self.textLabel3_2_2, 0, 0, 1, 1)
  23.         self.line1_2_2 = QtGui.QFrame(self.AutoRefresh)
  24.         self.line1_2_2.setFrameShape(QtGui.QFrame.HLine)
  25.         self.line1_2_2.setFrameShadow(QtGui.QFrame.Sunken)
  26.         self.line1_2_2.setObjectName('line1_2_2')
  27.         self.gridlayout1.addWidget(self.line1_2_2, 1, 0, 1, 1)
  28.         self.AutoRefreshCheckBox = QtGui.QCheckBox(self.AutoRefresh)
  29.         self.AutoRefreshCheckBox.setObjectName('AutoRefreshCheckBox')
  30.         self.gridlayout1.addWidget(self.AutoRefreshCheckBox, 2, 0, 1, 1)
  31.         self.RefreshRateGroupBox = QtGui.QGroupBox(self.AutoRefresh)
  32.         self.RefreshRateGroupBox.setEnabled(True)
  33.         self.RefreshRateGroupBox.setObjectName('RefreshRateGroupBox')
  34.         self.gridlayout2 = QtGui.QGridLayout(self.RefreshRateGroupBox)
  35.         self.gridlayout2.setObjectName('gridlayout2')
  36.         self.textLabel1_4 = QtGui.QLabel(self.RefreshRateGroupBox)
  37.         self.textLabel1_4.setWordWrap(False)
  38.         self.textLabel1_4.setObjectName('textLabel1_4')
  39.         self.gridlayout2.addWidget(self.textLabel1_4, 0, 0, 1, 1)
  40.         self.hboxlayout = QtGui.QHBoxLayout()
  41.         self.hboxlayout.setObjectName('hboxlayout')
  42.         self.AutoRefreshRateSpinBox = QtGui.QSpinBox(self.RefreshRateGroupBox)
  43.         self.AutoRefreshRateSpinBox.setEnabled(False)
  44.         self.AutoRefreshRateSpinBox.setWrapping(True)
  45.         self.AutoRefreshRateSpinBox.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus)
  46.         self.AutoRefreshRateSpinBox.setMinimum(10)
  47.         self.AutoRefreshRateSpinBox.setMaximum(300)
  48.         self.AutoRefreshRateSpinBox.setProperty('value', QtCore.QVariant(30))
  49.         self.AutoRefreshRateSpinBox.setObjectName('AutoRefreshRateSpinBox')
  50.         self.hboxlayout.addWidget(self.AutoRefreshRateSpinBox)
  51.         self.gridlayout2.addLayout(self.hboxlayout, 0, 1, 1, 1)
  52.         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  53.         self.gridlayout2.addItem(spacerItem, 0, 2, 1, 1)
  54.         self.gridlayout1.addWidget(self.RefreshRateGroupBox, 3, 0, 1, 1)
  55.         self.RefreshTypeGroupBox = QtGui.QGroupBox(self.AutoRefresh)
  56.         self.RefreshTypeGroupBox.setObjectName('RefreshTypeGroupBox')
  57.         self.gridlayout3 = QtGui.QGridLayout(self.RefreshTypeGroupBox)
  58.         self.gridlayout3.setObjectName('gridlayout3')
  59.         self.RefreshCurrentRadioButton = QtGui.QRadioButton(self.RefreshTypeGroupBox)
  60.         self.RefreshCurrentRadioButton.setEnabled(False)
  61.         self.RefreshCurrentRadioButton.setChecked(True)
  62.         self.RefreshCurrentRadioButton.setObjectName('RefreshCurrentRadioButton')
  63.         self.gridlayout3.addWidget(self.RefreshCurrentRadioButton, 0, 0, 1, 1)
  64.         self.RefreshAllRadioButton = QtGui.QRadioButton(self.RefreshTypeGroupBox)
  65.         self.RefreshAllRadioButton.setEnabled(False)
  66.         self.RefreshAllRadioButton.setObjectName('RefreshAllRadioButton')
  67.         self.gridlayout3.addWidget(self.RefreshAllRadioButton, 1, 0, 1, 1)
  68.         self.gridlayout1.addWidget(self.RefreshTypeGroupBox, 4, 0, 1, 1)
  69.         spacerItem1 = QtGui.QSpacerItem(446, 41, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  70.         self.gridlayout1.addItem(spacerItem1, 5, 0, 1, 1)
  71.         self.TabWidget.addTab(self.AutoRefresh, '')
  72.         self.SystemTray = QtGui.QWidget()
  73.         self.SystemTray.setObjectName('SystemTray')
  74.         self.gridlayout4 = QtGui.QGridLayout(self.SystemTray)
  75.         self.gridlayout4.setObjectName('gridlayout4')
  76.         self.textLabel3_2_3 = QtGui.QLabel(self.SystemTray)
  77.         self.textLabel3_2_3.setWordWrap(False)
  78.         self.textLabel3_2_3.setObjectName('textLabel3_2_3')
  79.         self.gridlayout4.addWidget(self.textLabel3_2_3, 0, 0, 1, 1)
  80.         self.line1_2_3 = QtGui.QFrame(self.SystemTray)
  81.         self.line1_2_3.setFrameShape(QtGui.QFrame.HLine)
  82.         self.line1_2_3.setFrameShadow(QtGui.QFrame.Sunken)
  83.         self.line1_2_3.setObjectName('line1_2_3')
  84.         self.gridlayout4.addWidget(self.line1_2_3, 1, 0, 1, 1)
  85.         self.SystemTraySettings = SystrayFrame(self.SystemTray)
  86.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
  87.         sizePolicy.setHorizontalStretch(0)
  88.         sizePolicy.setVerticalStretch(0)
  89.         sizePolicy.setHeightForWidth(self.SystemTraySettings.sizePolicy().hasHeightForWidth())
  90.         self.SystemTraySettings.setSizePolicy(sizePolicy)
  91.         self.SystemTraySettings.setFrameShadow(QtGui.QFrame.Raised)
  92.         self.SystemTraySettings.setObjectName('SystemTraySettings')
  93.         self.gridlayout4.addWidget(self.SystemTraySettings, 2, 0, 1, 1)
  94.         self.TabWidget.addTab(self.SystemTray, '')
  95.         self.Commands = QtGui.QWidget()
  96.         self.Commands.setObjectName('Commands')
  97.         self.gridlayout5 = QtGui.QGridLayout(self.Commands)
  98.         self.gridlayout5.setObjectName('gridlayout5')
  99.         self.textLabel3_2_2_2 = QtGui.QLabel(self.Commands)
  100.         self.textLabel3_2_2_2.setWordWrap(False)
  101.         self.textLabel3_2_2_2.setObjectName('textLabel3_2_2_2')
  102.         self.gridlayout5.addWidget(self.textLabel3_2_2_2, 0, 0, 1, 2)
  103.         self.line1_2_2_3 = QtGui.QFrame(self.Commands)
  104.         self.line1_2_2_3.setFrameShape(QtGui.QFrame.HLine)
  105.         self.line1_2_2_3.setFrameShadow(QtGui.QFrame.Sunken)
  106.         self.line1_2_2_3.setObjectName('line1_2_2_3')
  107.         self.gridlayout5.addWidget(self.line1_2_2_3, 1, 0, 1, 2)
  108.         self.groupBox_3 = QtGui.QGroupBox(self.Commands)
  109.         self.groupBox_3.setObjectName('groupBox_3')
  110.         self.gridlayout6 = QtGui.QGridLayout(self.groupBox_3)
  111.         self.gridlayout6.setObjectName('gridlayout6')
  112.         self.textLabel1_2 = QtGui.QLabel(self.groupBox_3)
  113.         self.textLabel1_2.setEnabled(False)
  114.         self.textLabel1_2.setWordWrap(False)
  115.         self.textLabel1_2.setObjectName('textLabel1_2')
  116.         self.gridlayout6.addWidget(self.textLabel1_2, 0, 0, 1, 1)
  117.         self.PrintCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  118.         self.PrintCommandLineEdit.setEnabled(False)
  119.         self.PrintCommandLineEdit.setObjectName('PrintCommandLineEdit')
  120.         self.gridlayout6.addWidget(self.PrintCommandLineEdit, 1, 0, 1, 1)
  121.         self.textLabel2_2 = QtGui.QLabel(self.groupBox_3)
  122.         self.textLabel2_2.setWordWrap(False)
  123.         self.textLabel2_2.setObjectName('textLabel2_2')
  124.         self.gridlayout6.addWidget(self.textLabel2_2, 2, 0, 1, 1)
  125.         self.ScanCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  126.         self.ScanCommandLineEdit.setObjectName('ScanCommandLineEdit')
  127.         self.gridlayout6.addWidget(self.ScanCommandLineEdit, 3, 0, 1, 1)
  128.         self.textLabel3_3 = QtGui.QLabel(self.groupBox_3)
  129.         self.textLabel3_3.setEnabled(False)
  130.         self.textLabel3_3.setWordWrap(False)
  131.         self.textLabel3_3.setObjectName('textLabel3_3')
  132.         self.gridlayout6.addWidget(self.textLabel3_3, 4, 0, 1, 1)
  133.         self.SendFaxCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  134.         self.SendFaxCommandLineEdit.setEnabled(False)
  135.         self.SendFaxCommandLineEdit.setObjectName('SendFaxCommandLineEdit')
  136.         self.gridlayout6.addWidget(self.SendFaxCommandLineEdit, 5, 0, 1, 1)
  137.         self.textLabel4 = QtGui.QLabel(self.groupBox_3)
  138.         self.textLabel4.setEnabled(False)
  139.         self.textLabel4.setWordWrap(False)
  140.         self.textLabel4.setObjectName('textLabel4')
  141.         self.gridlayout6.addWidget(self.textLabel4, 6, 0, 1, 1)
  142.         self.AccessPCardCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  143.         self.AccessPCardCommandLineEdit.setEnabled(False)
  144.         self.AccessPCardCommandLineEdit.setObjectName('AccessPCardCommandLineEdit')
  145.         self.gridlayout6.addWidget(self.AccessPCardCommandLineEdit, 7, 0, 1, 1)
  146.         self.textLabel5 = QtGui.QLabel(self.groupBox_3)
  147.         self.textLabel5.setEnabled(False)
  148.         self.textLabel5.setWordWrap(False)
  149.         self.textLabel5.setObjectName('textLabel5')
  150.         self.gridlayout6.addWidget(self.textLabel5, 8, 0, 1, 1)
  151.         self.MakeCopiesCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  152.         self.MakeCopiesCommandLineEdit.setEnabled(False)
  153.         self.MakeCopiesCommandLineEdit.setObjectName('MakeCopiesCommandLineEdit')
  154.         self.gridlayout6.addWidget(self.MakeCopiesCommandLineEdit, 9, 0, 1, 1)
  155.         self.gridlayout5.addWidget(self.groupBox_3, 2, 0, 1, 2)
  156.         spacerItem2 = QtGui.QSpacerItem(20, 60, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  157.         self.gridlayout5.addItem(spacerItem2, 3, 1, 1, 1)
  158.         self.SetDefaultsButton = QtGui.QPushButton(self.Commands)
  159.         self.SetDefaultsButton.setEnabled(True)
  160.         self.SetDefaultsButton.setObjectName('SetDefaultsButton')
  161.         self.gridlayout5.addWidget(self.SetDefaultsButton, 4, 0, 1, 1)
  162.         spacerItem3 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  163.         self.gridlayout5.addItem(spacerItem3, 4, 1, 1, 1)
  164.         self.TabWidget.addTab(self.Commands, '')
  165.         self.gridlayout.addWidget(self.TabWidget, 0, 0, 1, 2)
  166.         spacerItem4 = QtGui.QSpacerItem(301, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  167.         self.gridlayout.addItem(spacerItem4, 1, 0, 1, 1)
  168.         self.StdButtons = QtGui.QDialogButtonBox(SettingsDialog_base)
  169.         self.StdButtons.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.NoButton | QtGui.QDialogButtonBox.Ok)
  170.         self.StdButtons.setCenterButtons(False)
  171.         self.StdButtons.setObjectName('StdButtons')
  172.         self.gridlayout.addWidget(self.StdButtons, 1, 1, 1, 1)
  173.         self.textLabel1_4.setBuddy(self.AutoRefreshRateSpinBox)
  174.         self.textLabel1_2.setBuddy(self.PrintCommandLineEdit)
  175.         self.textLabel2_2.setBuddy(self.ScanCommandLineEdit)
  176.         self.textLabel3_3.setBuddy(self.SendFaxCommandLineEdit)
  177.         self.textLabel4.setBuddy(self.AccessPCardCommandLineEdit)
  178.         self.textLabel5.setBuddy(self.MakeCopiesCommandLineEdit)
  179.         self.retranslateUi(SettingsDialog_base)
  180.         self.TabWidget.setCurrentIndex(2)
  181.         QtCore.QObject.connect(self.AutoRefreshCheckBox, QtCore.SIGNAL('toggled(bool)'), self.AutoRefreshRateSpinBox.setEnabled)
  182.         QtCore.QObject.connect(self.AutoRefreshCheckBox, QtCore.SIGNAL('toggled(bool)'), self.RefreshAllRadioButton.setEnabled)
  183.         QtCore.QObject.connect(self.AutoRefreshCheckBox, QtCore.SIGNAL('toggled(bool)'), self.RefreshCurrentRadioButton.setEnabled)
  184.         QtCore.QObject.connect(self.StdButtons, QtCore.SIGNAL('accepted()'), SettingsDialog_base.accept)
  185.         QtCore.QObject.connect(self.StdButtons, QtCore.SIGNAL('rejected()'), SettingsDialog_base.reject)
  186.         QtCore.QMetaObject.connectSlotsByName(SettingsDialog_base)
  187.         SettingsDialog_base.setTabOrder(self.TabWidget, self.AutoRefreshCheckBox)
  188.         SettingsDialog_base.setTabOrder(self.AutoRefreshCheckBox, self.AutoRefreshRateSpinBox)
  189.         SettingsDialog_base.setTabOrder(self.AutoRefreshRateSpinBox, self.RefreshCurrentRadioButton)
  190.         SettingsDialog_base.setTabOrder(self.RefreshCurrentRadioButton, self.RefreshAllRadioButton)
  191.         SettingsDialog_base.setTabOrder(self.RefreshAllRadioButton, self.PrintCommandLineEdit)
  192.         SettingsDialog_base.setTabOrder(self.PrintCommandLineEdit, self.ScanCommandLineEdit)
  193.         SettingsDialog_base.setTabOrder(self.ScanCommandLineEdit, self.SendFaxCommandLineEdit)
  194.         SettingsDialog_base.setTabOrder(self.SendFaxCommandLineEdit, self.AccessPCardCommandLineEdit)
  195.         SettingsDialog_base.setTabOrder(self.AccessPCardCommandLineEdit, self.MakeCopiesCommandLineEdit)
  196.         SettingsDialog_base.setTabOrder(self.MakeCopiesCommandLineEdit, self.SetDefaultsButton)
  197.         SettingsDialog_base.setTabOrder(self.SetDefaultsButton, self.StdButtons)
  198.  
  199.     
  200.     def retranslateUi(self, SettingsDialog_base):
  201.         SettingsDialog_base.setWindowTitle(QtGui.QApplication.translate('SettingsDialog_base', 'HP Device Manager - Settings', None, QtGui.QApplication.UnicodeUTF8))
  202.         self.textLabel3_2_2.setText(QtGui.QApplication.translate('SettingsDialog_base', '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\np, li { white-space: pre-wrap; }\n</style></head><body style=" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;">\n<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Configure if and when devices are automatically refreshed</span></p></body></html>', None, QtGui.QApplication.UnicodeUTF8))
  203.         self.AutoRefreshCheckBox.setText(QtGui.QApplication.translate('SettingsDialog_base', '&Enable device auto refresh', None, QtGui.QApplication.UnicodeUTF8))
  204.         self.RefreshRateGroupBox.setTitle(QtGui.QApplication.translate('SettingsDialog_base', 'Refresh Interval', None, QtGui.QApplication.UnicodeUTF8))
  205.         self.textLabel1_4.setText(QtGui.QApplication.translate('SettingsDialog_base', '&Refresh every:', None, QtGui.QApplication.UnicodeUTF8))
  206.         self.AutoRefreshRateSpinBox.setSuffix(QtGui.QApplication.translate('SettingsDialog_base', ' sec', None, QtGui.QApplication.UnicodeUTF8))
  207.         self.RefreshTypeGroupBox.setTitle(QtGui.QApplication.translate('SettingsDialog_base', 'Devices to Refresh', None, QtGui.QApplication.UnicodeUTF8))
  208.         self.RefreshCurrentRadioButton.setText(QtGui.QApplication.translate('SettingsDialog_base', 'Only ¤tly selected device', None, QtGui.QApplication.UnicodeUTF8))
  209.         self.RefreshAllRadioButton.setText(QtGui.QApplication.translate('SettingsDialog_base', '&All devices', None, QtGui.QApplication.UnicodeUTF8))
  210.         self.TabWidget.setTabText(self.TabWidget.indexOf(self.AutoRefresh), QtGui.QApplication.translate('SettingsDialog_base', 'Auto Refresh', None, QtGui.QApplication.UnicodeUTF8))
  211.         self.textLabel3_2_3.setText(QtGui.QApplication.translate('SettingsDialog_base', '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\np, li { white-space: pre-wrap; }\n</style></head><body style=" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;">\n<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Configure the behavior of the HP Status Service (hp-systray)</span></p></body></html>', None, QtGui.QApplication.UnicodeUTF8))
  212.         self.TabWidget.setTabText(self.TabWidget.indexOf(self.SystemTray), QtGui.QApplication.translate('SettingsDialog_base', 'System Tray Icon', None, QtGui.QApplication.UnicodeUTF8))
  213.         self.textLabel3_2_2_2.setText(QtGui.QApplication.translate('SettingsDialog_base', '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\np, li { white-space: pre-wrap; }\n</style></head><body style=" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;">\n<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Configure what commands to run for device actions</span></p></body></html>', None, QtGui.QApplication.UnicodeUTF8))
  214.         self.groupBox_3.setTitle(QtGui.QApplication.translate('SettingsDialog_base', 'Commands', None, QtGui.QApplication.UnicodeUTF8))
  215.         self.textLabel1_2.setText(QtGui.QApplication.translate('SettingsDialog_base', '&Print:', None, QtGui.QApplication.UnicodeUTF8))
  216.         self.textLabel2_2.setText(QtGui.QApplication.translate('SettingsDialog_base', '&Scan:', None, QtGui.QApplication.UnicodeUTF8))
  217.         self.textLabel3_3.setText(QtGui.QApplication.translate('SettingsDialog_base', 'Send PC &Fax:', None, QtGui.QApplication.UnicodeUTF8))
  218.         self.textLabel4.setText(QtGui.QApplication.translate('SettingsDialog_base', '&Unload Photo Cards:', None, QtGui.QApplication.UnicodeUTF8))
  219.         self.textLabel5.setText(QtGui.QApplication.translate('SettingsDialog_base', 'Make &Copies:', None, QtGui.QApplication.UnicodeUTF8))
  220.         self.SetDefaultsButton.setText(QtGui.QApplication.translate('SettingsDialog_base', 'Set &Defaults', None, QtGui.QApplication.UnicodeUTF8))
  221.         self.TabWidget.setTabText(self.TabWidget.indexOf(self.Commands), QtGui.QApplication.translate('SettingsDialog_base', 'Commands (Advanced)', None, QtGui.QApplication.UnicodeUTF8))
  222.  
  223.  
  224. from systrayframe import SystrayFrame
  225.